public class MyThreadSonOne extends MyThreadDad {

	public MyThreadSonOne(int num) {
		super(num);
	}

	@Override
	public void run() {
		this.sacarPrimo();
	}
	
	public void sacarPrimo(){
		boolean fin = false;
		for (int i = 2; i < this.getNumero() && !fin ;i++) {
			if (this.getNumero()%i == 0){
				System.out.println("El numero no es Primmo");
				fin = true;
			}
		}
		if (fin == false) System.out.println("El numero es primo");
	}
}

